package collectiondemo;

public class MainDemo1 {
    public static void main(String[] args) {
        //java.util.Arrays.asList 这是 java.util.Arrays.ArrayList
        //内部类
        java.util.List list = java.util.Arrays.asList("one Two three Four five six".split(" "));
        System.out.println("List :" + list);
        java.util.Collections.rotate(list, 3);
        System.out.println("rotate: " + list);
    }
}
